package com.yumeng.webapp.shiro.controller;

import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 * @author wxd
 * @date 2025/11/13 17:16
 */
@Slf4j
@RestController
@RequestMapping("/perm")
public class PermController {

    @RequiresPermissions({"aaa","root","aaa"})
    @GetMapping("/toAddDemoUser.vw")
    public ModelAndView add(){
        return  new ModelAndView("test/user/add");
    }

    @GetMapping("/toUpdateDemoUser.vw")
    public ModelAndView update(){
        return  new ModelAndView("test/user/update");
    }

    
}
